package com.wsoft.interceptor;

/**
 * @Author Zhang gukai
 * @Date 2024/10/24 22:40
 */
public class ThreadContext {
    private static final ThreadLocal<Integer> THREAD_LOCAL = new ThreadLocal<>();

    public static void setThread(Integer count) {
        ThreadContext.THREAD_LOCAL.set(count);
    }

    public static Integer getThread() {
        return THREAD_LOCAL.get();
    }

    public static void remove() {
        THREAD_LOCAL.remove();
    }
}
